# 指定工程所要使用的Qt模块
QT += core gui sql
QT += axcontainer
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

# 指定可执行文件或库的基本文件名，默认为当前目录名
TARGET =  QCoreSystem

# 指定工程配置和编译参数
CONFIG += c++11
CONFIG += object_parallel_to_source

# 指定预定义预处理器符号
DEFINES += QT_DEPRECATED_WARNINGS

# 指定C++实现文件
SOURCES += \
    ../../inc/QLsFunc/qlsfunc.cpp \
    main.cpp \
    qlscoresystem.cpp

# 指定C++头文件
HEADERS += \
    ../../inc/QLsFunc/qlsfunc.h \
    qlscoresystem.h

# 指定需要uic处理的ui文件
FORMS += \
    qlscoresystem.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

# 指定release模式编译时的配置
CONFIG(release, debug|release) {
    # 指定可执行文件放置的目录
    DESTDIR = ../../bin/release
    # 指定目标文件(obj)生成的目录
    OBJECTS_DIR = ../../lib/release
    # 指定ui_.h文件生成路径
    UI_DIR = release
    # 指定语言包
#    TRANSLATIONS = ../../bin/release/language/lang_English.ts \
#                   ../../bin/release/language/lang_Chinses.ts
}

# 指定debug模式编译时的配置
CONFIG(debug, debug|release) {
    # 指定可执行文件放置的目录
    DESTDIR = ../../bin/debug
    # 指定目标文件(obj)生成的目录
    OBJECTS_DIR = ../../lib/debug
    # 指定ui_.h文件生成路径
    UI_DIR = debug
    # 指定语言包
#    TRANSLATIONS = ../../bin/debug/language/lang_English.ts \
#                   ../../bin/debug/language/lang_Chinses.ts
}

# 指定需要rcc处理的qrc文件
RESOURCES += \
    icon.qrc

# 指定图标：窗口左上方的图标、状态栏图标和可执行程序图标
RC_FILE = logo.rc

# 指定其他文件
DISTFILES += \
    logo.rc

# 指定语言包
TRANSLATIONS = language/lang_English.ts \
               language/lang_Chinese.ts

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../bin/release/ -ldllQsLog
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../bin/debug/ -ldllQsLog
else:unix: LIBS += -L$$PWD/../../bin/ -ldllQsLog

INCLUDEPATH += $$PWD/../../bin/release
DEPENDPATH += $$PWD/../../bin/release

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../bin/release/ -ldllQLsLog
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../bin/debug/ -ldllQLsLog
else:unix: LIBS += -L$$PWD/../../bin/ -ldllQLsLog

INCLUDEPATH += $$PWD/../../bin/release
DEPENDPATH += $$PWD/../../bin/release

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../bin/release/ -ldllQLsThemesManager
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../bin/debug/ -ldllQLsThemesManager
else:unix: LIBS += -L$$PWD/../../bin/ -ldllQLsThemesManager

INCLUDEPATH += $$PWD/../../bin/release
DEPENDPATH += $$PWD/../../bin/release

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../bin/release/ -ldllQLsPluginsManager
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../bin/debug/ -ldllQLsPluginsManager
else:unix: LIBS += -L$$PWD/../../bin/ -ldllQLsPluginsManager

INCLUDEPATH += $$PWD/../../bin/release
DEPENDPATH += $$PWD/../../bin/release

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../bin/release/ -ldllQLsDBManager
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../bin/debug/ -ldllQLsDBManager
else:unix: LIBS += -L$$PWD/../../bin/ -ldllQLsDBManager

INCLUDEPATH += $$PWD/../../bin/release
DEPENDPATH += $$PWD/../../bin/release

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../bin/release/ -ldllQLsLanguagesManager
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../bin/debug/ -ldllQLsLanguagesManager
else:unix: LIBS += -L$$PWD/../../bin/ -ldllQLsLanguagesManager

INCLUDEPATH += $$PWD/../../bin/release
DEPENDPATH += $$PWD/../../bin/release

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../bin/release/ -ldllQLsPluginsManagerAppfwk
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../bin/debug/ -ldllQLsPluginsManagerAppfwk
else:unix: LIBS += -L$$PWD/../../bin/ -ldllQLsPluginsManagerAppfwk

INCLUDEPATH += $$PWD/../../bin/release
DEPENDPATH += $$PWD/../../bin/release

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../bin/release/ -ldllQLsLoginAppfwk
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../bin/debug/ -ldllQLsLoginAppfwk
else:unix: LIBS += -L$$PWD/../../bin/ -ldllQLsLoginAppfwk

INCLUDEPATH += $$PWD/../../bin/release
DEPENDPATH += $$PWD/../../bin/release
